﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="basicSet.aspx.cs" Inherits="WebApp.admin.basic.basicSet" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        基本设置
    </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>

<script type="text/javascript">
    function checkBasicSetForm() {
        var fileLogo = document.getElementById("fileLogo");
        if (fileLogo.value != "") {
            if (/^.*?\.(gif|png|jpg|jpeg|bmp)$/.test(fileLogo.value.toLowerCase())) {
            } else {
                alert("企业LOGO只能上传gif, png, jpg, bmp格式的图片");
                return false;
            }
        }
        var fielServiceTel = document.getElementById("fielServiceTel");
        if (fielServiceTel.value != "") {
            if (/^.*?\.(gif|png|jpg|jpeg|bmp)$/.test(fielServiceTel.value.toLowerCase())) {
            } else {
                alert("服务热线只能上传gif, png, jpg, bmp格式的图片");
                return false;
            }
        }
        var regu = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
        var enterpriseEmail = document.getElementById("txtEnterpriseEmail");
        if (enterpriseEmail.value == "") {
            alert("请输入企业邮箱！");
            enterpriseEmail.focus();
            return false;
        }
        else if (enterpriseEmail.value.match(regu) == null) {
            alert("请输入正确的企业邮箱！");
            enterpriseEmail.select();
            return false;
        }
        //        var remindEmail=document.getElementById("txtRemindEmail");
        //        if(remindEmail.value=="")
        //        {
        //            alert("请输入提醒邮箱！");
        //            remindEmail.focus();
        //            return false;
        //        }
        //        else if(remindEmail.value.match(regu)==null)
        //        {
        //            alert("请输入正确的提醒邮箱！");
        //            remindEmail.select();
        //            return false;
        //        }
        //        var mobile=document.getElementById("txtMobile");
        //        if(mobile.value=="")
        //        {
        //            alert("请输入提醒手机！");
        //            mobile.focus();
        //            return false;
        //        }
        var telephone = document.getElementById("txtTelephone");
        var fax = document.getElementById("txtFax");
        return true;
    }
</script>

<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">
        <tr>
            <td class="td_middle_middle">
                <div class="maincontent">
                    <form id="form1" runat="server">
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td class="td_title">
                                    企业LOGO(图片)：</td>
                                <td class="td_content">
                                    <img alt="" id="imgLogo" src="" runat="server" />
                                    <input id="fileLogo" runat="server" type="file" /><label id="lblLogo" runat="server" class="imgClass"></label></td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    服务热线(图片)：</td>
                                <td class="td_content">
                                    <img alt="" id="imgServiceTel" src="" runat="server" />
                                    <input id="fielServiceTel" runat="server" type="file" /><label id="lblServiceTel" runat="server" class="imgClass"></label></td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    企业名称(中文)：</td>
                                <td class="td_content">
                                    <input id="txtCnEnterpriseName" type="text" runat="server" maxlength="50" class="longtxt" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    企业名称(英文)：</td>
                                <td class="td_content">
                                    <input id="txtEnEnterpriseName" type="text" runat="server" maxlength="50" class="longtxt" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    企业简称(中文)：</td>
                                <td class="td_content">
                                    <input id="txtCnEnterpriseSortName" type="text" runat="server" maxlength="50" class="longtxt" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    企业简称(英文)：</td>
                                <td class="td_content">
                                    <input id="txtEnEnterpriseSortName" type="text" runat="server" maxlength="50" class="longtxt" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    页面关键词(中文)：</td>
                                <td class="td_content">
                                    <input id="txtCnKeyword" type="text" runat="server" maxlength="50" class="longtxt" />*最多50个字符，多个关键词以“，”隔开</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    页面关键词(英文)：</td>
                                <td class="td_content">
                                    <input id="txtEnKeyword" type="text" runat="server" maxlength="50" class="longtxt" />*最多50个字符，多个关键词以“，”隔开</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    页面标题(中文)：</td>
                                <td class="td_content">
                                    <input id="txtCnTitle" type="text" runat="server" maxlength="100" class="longtxt" />*最多100个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    页面标题(英文)：</td>
                                <td class="td_content">
                                    <input id="txtEnTitle" type="text" runat="server" maxlength="100" class="longtxt" />*最多100个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    页面描述(中文)：</td>
                                <td class="td_content">
                                    <input id="txtCnDescription" type="text" runat="server" maxlength="100" class="longtxt" />*最多100个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    页面描述(英文)：</td>
                                <td class="td_content">
                                    <input id="txtEnDescription" type="text" runat="server" maxlength="100" class="longtxt" />*最多100个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    网站版权：</td>
                                <td class="td_content">
                                    <input id="txtCopyright" type="text" runat="server" value="" class="longtxt" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    域名网址：</td>
                                <td class="td_content">
                                    <input id="txtDomainWebSite" type="text" runat="server" value="" class="longtxt" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    ICP备案号：</td>
                                <td class="td_content">
                                    <input id="txtIcpRecordNumber" type="text" runat="server" maxlength="50" class="longtxt" />*最多50个字符</td>
                            </tr>
                             <tr>
                                <td class="td_title">
                                    企业邮箱：</td>
                                <td class="td_content">
                                    <input id="txtEnterpriseEmail" type="text" runat="server" maxlength="100" class="longtxt" />*最多100个字符</td>
                            </tr>
                            <%--<tr>
                                <td class="td_title">
                                    提醒邮箱：</td>
                                <td class="td_content">
                                    <input id="txtRemindEmail" type="text" runat="server" maxlength="100" class="longtxt" />*最多100个字符</td>
                            </tr>--%>
                            <tr>
                                <td class="td_title">
                                    联系电话：</td>
                                <td class="td_content">
                                    <input id="txtTelephone" type="text" runat="server" maxlength="50" class="longtxt" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    传真号码：</td>
                                <td class="td_content">
                                    <input id="txtFax" type="text" runat="server" maxlength="50" class="longtxt" />*最多50个字符</td>
                            </tr>
                            <%--<tr>
                                <td class="td_title">
                                    提醒手机：</td>
                                <td class="td_content">
                                    <input id="txtMobile" type="text" runat="server" maxlength="50" class="longtxt" />*最多50个字符</td>
                            </tr>--%>
                            <tr>
                                <td class="td_title">
                                    自定义代码：</td>
                                <td class="td_content">
                                    <textarea id="txtaCutomerCode" cols="20" rows="2" runat="server"></textarea>*
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="btnSubmit" runat="server" Text="确  定" CssClass="formButton"
                                        OnClientClick="return checkBasicSetForm();" OnClick="btnSubmit_Click" /></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </td>
        </tr>
    </table>
</body>
</html>

